extends Node2D

@onready var mask: ColorRect = $mask
@onready var sound: AudioStreamPlayer2D = $sound

func _on_start_pressed() -> void:
	mask.visible=true
	mask.color.a=0.0
	sound.play()
	await mask._fade_in().finished
	for i in global.flag_list.keys():
		global.flag_list[i]=0
	global.triangle=0
	global.diamond=0
	global.cube=0
	get_tree().change_scene_to_file("res://scene/game_scene.tscn")

func _on_exit_pressed() -> void:
	mask.visible=true
	mask.color.a=0.0
	sound.play()
	await mask._fade_in().finished
	get_tree().quit()
